﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Compilex.Syntatic.Declarations
{
    public class LibraryFunctionCall : FunctionCall
    {
        public LibraryFunctionCall(SyntaticContext context)
            : base(context)
        {
        
        }

        protected override void GenerateSimpleArgumentPush()
        {
            Context.CommandBlockStack.Current.CodeGenerator.PushLibraryFunctionArgument();
        }

        public override void GenerateCode()
        {
            Context.CommandBlockStack.Current.CodeGenerator.DoLibraryFunctionCall(FunctionName);
        }
    }
}
